convert dictionary to dataframe python with keys as index